export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {name: '登录', path: '/user/login', component: './user/Login'},
      {name: '注册', path: "/user/register", component: "./user/register"},
      {component: './404'},
    ],
  },

  {name: 'Api市场', icon: 'crown', path: '/display', component: './Display'},
  {name: '我的接口', icon: 'crown', path: '/product', component: './ProductAndService'},
  {name: '个人中心', icon: 'crown', path: '/person', component: './personalInfo'},
  {path: '/invoke/:id', name: '调用', icon: 'smile', component: './invoke', hideInMenu: true},
  {
    path: '/admin',
    name: '平台管理',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      {path: '/admin/list', name: 'Api接口列表', icon: 'crown', component: './TableList'},
      {component: './404'},
    ],
  },
  {path: '/', redirect: '/display'},
  {component: './404'},
];
